#include "displayHandler.h"
#include "playContext.h"

DisplayHandler::DisplayHandler(const int& brightness, const int& contrast, const int& saturation) 
	: brightness(brightness),contrast(contrast),saturation(saturation)
{
}

void DisplayHandler::operator()()
{
	Player* player = PlayContext::inst()->getBackgroundPlayer();
	if (player) {
		player->setBrightness(brightness);
		player->setContrast(contrast);
		player->setSaturation(saturation);
	}
}
